import { Transform } from 'class-transformer'
import { IsNotEmpty, ValidateIf, MinLength } from 'class-validator'
export class CreateMenuDto {
    id: number
    @IsNotEmpty({message: '菜单名称不能为空'})
    menuName: string
    outLink: string
    @ValidateIf(r => !r.outLink)
    @IsNotEmpty({message: '路由不能为空'})
    route: string
    icon: string
    @IsNotEmpty({message: '菜单地址不能为空'})
    menuUrl: string
    @IsNotEmpty({message: '状态不能为空'})
    status: number

}
